Skip to content

Fix (hopefully) the Release workflow cache#369

Merged
zregvart merged 1 commit into
conforma:mainfrom
zregvart:pr/fix-release-cache
Jan 27, 2023
Merged

Fix (hopefully) the Release workflow cache#369
zregvart merged 1 commit into
conforma:mainfrom
zregvart:pr/fix-release-cache

Conversation

@zregvart

Copy link
Copy Markdown
Contributor

The Release workflow doesn't restore the stale cache version in case of dependency changes, causing the build to start from scratch instead of being incremental. This might be caused by by a trailing newline in the restore-keys.

In addition, this changes the cache key to remove ${{ runner.os }} which is irrelevant to our use as we use the ubuntu-latest runners anyhow, and -go- since we're using a single cache anyhow so no need to tie it to golang.

The Release workflow doesn't restore the stale cache version in case of
dependency changes, causing the build to start from scratch instead of
being incremental. This might be caused by by a trailing newline in the
`restore-keys`.

In addition, this changes the cache key to remove `${{ runner.os }}`
which is irrelevant to our use as we use the `ubuntu-latest` runners
anyhow, and `-go-` since we're using a single cache anyhow so no need to
tie it to golang.
@codecov

codecov Bot commented Jan 27, 2023

Copy link
Copy Markdown

Codecov Report

Merging #369 (c593e02) into main (769dd9a) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #369   +/-   ##
=======================================
  Coverage   78.65%   78.65%           
=======================================
  Files          47       47           
  Lines        3560     3560           
=======================================
  Hits         2800     2800           
  Misses        760      760           
Flag Coverage Δ
acceptance 55.25% <ø> (ø)
generative 60.36% <ø> (ø)
integration 78.12% <ø> (ø)
unit 62.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@zregvart zregvart merged commit b8189f4 into conforma:main Jan 27, 2023
@zregvart zregvart deleted the pr/fix-release-cache branch January 27, 2023 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants